import { JSX } from "vue/jsx-runtime";

export type T = {
  [key: string]: any;
};

export type VisualPackage = {
  name: string;
  render: (props: T, styles: T) => JSX.Element;
};

export type VisualConfig = Array<{
  id: number;
  name: string;
  config: {
    [key: string]: any;
  };
  style: {
    [key: string]: any;
  };
}>;

export type VisualDesigner = {
  components: VisualConfig;
};

export type Module = {
  [key: string]: any;
};
